<script language="javascript">
showWait("waitDiv",false);

document.body.onbeforeunload = function (){
showWait("waitDiv",true);
disableAllBtn(true);
}
</script>